package com.bai.ad.vo;

import com.google.common.base.Strings;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * ClassName AdUnitRequest
 *
 * @author Bai
 * @version 1.0
 * @date 2019/2/20 0020 下午 21:56
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AdUnitRequest {

    private Long planId;

    private String unitName;

    private Integer positionType;

    private Long budget;

    public boolean createValidate(){
        return null != planId && !Strings.isNullOrEmpty(unitName)
                && positionType != null && null != budget;
    }
}
